Skip to main content
Version: 3.x.x

UseSocketStateType


import { UseSocketStateType } from "@hyper-fetch/react"

Description

Defined in react/src/helpers/use-socket-state/use-socket-state.types.ts:1

Preview

type UseSocketStateType<DataType> = {
connected: boolean;
connecting: boolean;
data: DataType | null;
timestamp: number | null;
}

Structure

{
connected: boolean;
connecting: boolean;
data: DataType | null;
timestamp: number | null;
}